package com.def;

//import static com.def.GenericDef.E_XPUNPACK_SLOT_NO_IN_MTRL_EXIST;

/* 基类
 * 定义基本的代码:表对应代码,错误代码 */
public class GenericDef {
	/**
	 * Usage: import static com.def.GenericDef.*;
	 */

	/**
	 * List 1. 通用常量 2. Com db item def 3. Db return error 4. Table error def 3**
	 * 5. Trx name def 6. Trx errot def 1** 7. Event cate 8. Basic check error
	 */

	/**
	 * 1. 通用常量定义
	 */
	public static final long _NORMAL = 0;
	public static final long _ERROR = -1;

	public static final String _YES = "Y";
	public static final char _YES_C = 'Y';
	public static final String _NO = "N";
	public static final String _NO_50 = "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN";
	public static final String _NO1_50 = "00000000000000000000000000000000000000000000000000";
	public static final char _NO_C = 'N';
	public static final String _OK = "OK";
	public static final String _NG = "NG";
	public static final String _GK = "GK"; // 管控品
	public static final String _LZ = "LZ"; // 留滞品
	public static final String _SC = "SC"; // 报废品
	public static final String _RW = "RW";
	public static final String _RM = "RM";

	public static final String _MIX = "MIX";

	public static final String TRX_OUT = "O";
	public static final String TRX_IN = "I";

	public static final String RETURN_CODE_OK = "0000000";
	public static final String RETURN_CODE_DEF = "rtn_code";
	public static final String RETURN_CODE_DEF_XML = "<" + RETURN_CODE_DEF + ">" + RETURN_CODE_OK + "</" + RETURN_CODE_DEF + ">";
	public static final String RETURN_MESG_OK = "SUCCESS";
	public static final String RETURN_CODE_UNKNOWN = "9999999";
	public static final String RETURN_CODE_SET_ERROR = "9999998";

	public static final String _SPACE0 = "";
	public static final String _SPACE = _SPACE0;

	public static final char ACTION_FLG_QUERY = 'Q';
	public static final char ACTION_FLG_SEARCH = 'S';
	public static final char ACTION_FLG_UPDATE = 'U';
	public static final char ACTION_FLG_ADD = 'A';
	public static final char ACTION_FLG_DELETE = 'D';
	public static final char ACTION_FLG_INQUIRE = 'I';
	public static final char ACTION_FLG_NEW = 'N';// 新增
	public static final char ACTION_FLG_REPLACE = 'R';// 更新
	public static final char ACTION_FLG_CANCEL = 'C';// 删除
	public static final char ACTION_FLG_LIST_WHOLE = 'L';// 查询全表
	public static final char ACTION_FLG_FILTER_DISTINCT = 'F';
	public static final char ACTION_FLG_LIST_BY_PATH = 'P';// 根据工艺路线查询站点信息
	public static final char ACTION_FLG_LIST_SWH = 'S';// 查询重工途程
	public static final char ACTION_FLG_BY_MDL = 'M';
	public final static char ACTION_FLG_QUERY_BY_WO_ID = 'W'; 

	public static final String JBIC_BOX_SET_CODE = "JBIC";// 减薄来料检设定的箱子设定代码
	/**
	 * 2. Com db item def
	 */
	/*--- Dest shop def ---*/
	// public static final String DEST_SHOP_WIP = "3000";
	public static final String DEST_SHOP_BANK_FLG_NO_WIP = "1";
	public static final String DEST_SHOP_BANK_FLG_WIP = "2";

	/*--- Sheet panel type ---*/
	public static final String PRD_TYPE_SHEET = "S";
	public static final String PRD_TYPE_PANEL = "P";
	public static final String PRD_TYPE_LOT = "L";

	/*--- Path type ---*/
	public static final String PATH_TYPE_MAIN = "MAIN";
	public static final String PATH_TYPE_REWK = "REWK";
	public static final String PATH_TYPE_SAMP = "SAMP";

	/*--- Process status ---*/
	public static final String PROC_IN_PROCESS = "INPR";
	public static final String PROC_WAIT = "WAIT";
	public static final String PROC_WFRL = "WFRL";
	public static final String PROC_RELS = "RELS";
	public static final String PROC_END = "LTED";
	public static final String PROC_LOT_OUT = "LTOT";
	public static final String PROC_HOLD = "HOLD";
	public static final String PROC_SCRP = "SCRP";
	public static final String PROC_SHIP = "SHIP";
	public static final String PROC_SHTC = "SHTC";
	public static final String PROC_COMPLETE = "COMP";
	public static final String PROC_EMPTY = "EMPT";
	public static final String PROC_STB_COMP = "STBC";
	public static final String PROC_RMWI = "RMWI"; // RMA WAIT FOR PRD IN
	public static final String PROC_RMPI = "RMPI"; // RMA PRD IN

	/*--- Wo status ---*/
	public static final String WO_STATUS_INPR = "INPR";
	public static final String WO_STATUS_HOLD = "HOLD";
	public static final String WO_STATUS_CLOS = "CLOS";
	public static final String WO_STATUS_WAIT = "WAIT";
	public static final String WO_STATUS_SHTC = "SHTC";

	/*--- Tool  ---*/
	public static final String TOOL_UNIT_MAIN = "MAIN";
	public static final String TOOL_UNIT_UNIT = "UNIT";
	public static final String TOOL_UNIT_PART = "PART";

	public static final String TOOL_TYPE_COMMONE = "C";
	public static final String TOOL_TYPE_IDENPENDENT = "I";

	public static final String TOOL_STAT_DOWN = "DOWN";
	public static final String TOOL_STAT_IDLE = "IDLE";
	public static final String TOOL_STAT_RUN = "RUN";
	public static final String TOOL_STAT_ENG = "ENG";

	/*-- casette empty flag ---*/
	public static final String EMPTY_CARRIER = "Y";
	public static final String EXIST_CARRIER = "N";

	/*--- AMS -----*/
	public static final String ALARM_MAIL = "M";
	public static final String ALARM_PHONE = "P";
	public static final String ALARM_SMS = "S";

	/*--- SWITCH -----*/
	public static final String SWH_TYP_REWORK = "R";
	public static final String SWH_TYP_BRANCH = "B";
	public static final String SWH_TYP_SWITCH = "S";

	public static final String PATH_FRST_OPE = "FRST";

	/*---- Rule action ---*/
	public static final String RUL_ACT_REWORK_OUT = "RWKO";

	/*---- Bank flg ---*/
	public static final String BANK_IN = "1";
	public static final String WIP_BANK_IN = "2";
	public static final String BANK_OUT = "0";
	public static final String WIP_REATIN = "3";

	/*---- Lot split ---*/
	public static final String LOT_SPLIT_0 = "00";
	public static final String LOT_SPLIT_1 = "01";

	public static final String LOT_MIX = "MIX";

	/*---- PM & PDA CHEKC ---*/
	public static final String MLDP_PDA = "01";
	public static final String MLDP_PM = "02";

	public static final String EVT_MTRL_IN = "MTIN";
	public static final String EVT_MTRL_OUT = "MTOT";

	/*---- DPS ---*/
	public static final String DPS_CATE_LEVEL_1 = "M";
	public static final String DPS_CATE_LEVEL_2 = "S";
	public static final String DPS_CATE_LEVEL_3 = "T";
	public static final String DPS_CATE_LEVEL_4 = "F";

	public static final String DPS_ACTION_4100 = "L";
	public static final String DPS_ACTION_4200 = "F";
	public static final String DPS_ACTION_WH_IN = "R";

	/*---- MDL CATE ---*/
	public static final String MDL_CATES = "ABC";
	public static final String MDL_CATE_JB = "A";
	public static final String MDL_CATE_DM = "B";
	public static final String MDL_CATE_QG = "C";

	/**
	 * 3. DB 基本报错
	 */
	public static final long E_READ_NOT_FOUND = 2;
	public static final long SQL_OTHER_ERROR = 9;
	public static final long E_ADD_EXIST = 31;
	public static final long E_DELETE_NOT_FOUND = 32;
	public static final long E_UPDATE_NOT_FOUND = 33;
	public static final long E_COMMIT_FAULT = 71;
	public static final long E_ROLLBACK_FAULT = 72;
	public static final long E_GET_NEXT_SEQUENCE_FAIL = 90;

	/**
	 * 4. 表对应错误代码
	 */
	public static final long E_RET_PROD_INFO = 3000100;
	public static final long E_BIS_DATA = 3000200;
	public static final long E_BIS_MDL_DEF = 3000300;
	public static final long E_BIS_LAYOT = 3000400;
	public static final long E_BIS_LAYOT_LC = 3000500;
	public static final long E_RET_WO = 3000600;
	public static final long E_RET_BOX = 3000700;
	public static final long E_RET_TOOL_ST = 3000800;
	public static final long E_BIS_TOOL = 3000900;
	public static final long E_BIS_M_LABEL = 3000100;
	public static final long E_BIS_M_ITEM = 3001000;
	public static final long E_BIS_M_BOUND = 3001100;
	public static final long E_RET_TOOL_PM = 3001200;
	public static final long E_RET_TOOL_CHK = 3001300;
	public static final long E_BIS_MTRL = 3001400;
	public static final long E_RET_PRD_IN = 3001500;
	public static final long E_BIS_PATH = 3001600;
	public static final long E_BIS_PATHI = 3001700;
	public static final long E_BIS_OPE = 3001800;
	public static final long E_BIS_TOOL_GR = 3001900;
	public static final long E_RET_PRD_INFO = 3002000;
	public static final long E_RET_PRD_GRD_INFO = 3004000;

	public static final long E_AMS_RET_TOOL_RPT_ALM = 3002100;
	public static final long E_AMS_BIS_ALM_INFO = 3002200;
	public static final long E_AMS_BIS_ALM_GR = 3002300;
	public static final long E_AMS_BIS_AGTG_R = 3002400;
	public static final long E_AMS_BIS_INFO_DATA = 3002500;
	public static final long E_AMS_RET_TOOL_HBT = 3002600;
	public static final long E_HIS_AMS_TOOL_ALM = 3002700;
	public static final long E_BIS_PATH_SWH = 3002800;
	public static final long E_RET_PRD_OUT = 3002900;

	public static final long E_RET_PRD_ABN = 3003000;
	public static final long E_RET_PRD_SCRP = 3003100;
	public static final long E_HIS_RET_PRD_INFO = 3003200;
	public static final long E_RET_PRD_INDT = 3003300;
	public static final long E_RET_SHIP_NOTICE = 3003400;
	public static final long E_RET_MTRL = 3003500;
	public static final long E_BIS_PAM = 3003600;
	public static final long E_RET_PROD_LOT = 3003700;

	public static final long E_RET_WO_DPS = 3003800;
	public static final long E_RET_PRD_INFO_SHTC = 3003900;
	public static final long E_RET_CUS_PRD_IN = 3004100;
	/**
	 * 5. Trx name def
	 */
	public static final String T_XPINQPALT = "XPINQPLT";
	public static final String T_XPCLOGOF = "XPCLOGOF";
	public static final String T_XPANNOUN = "XPANNOUN";
	public static final String T_XPAPLYSO = "XPAPLYSO";
	public static final String T_XPAPLYWO = "XPAPLYWO";
	public static final String T_XPTOOLOPE = "XPTOOLOPE";
	public static final String T_XPTOOLCHK = "XPTOOLCHK";
	public static final String T_XPWHSOPE = "XPWHSOPE";
	public static final String T_XPWMSOPE = "XPWMSOPE";
	public static final String T_XPINQBOX = "XPINQBOX";
	public static final String T_XPUNPACK = "XPUNPACK";
	public static final String T_XPMOVEIN = "XPMOVEIN";
	public static final String T_XPMOVEOUT = "XPMOVEOUT";
	public static final String T_XPPNLOUT = "XPPNLOUT";
	public static final String T_XPINQCOD = "XPINQCOD";
	public static final String T_XPIWIPEQ = "XPIWIPEQ";
	public static final String T_XPREWORK = "XPREWORK";
	public static final String T_XPSWITCH = "XPSWITCH";
	public static final String T_XPBOXHLD = "XPBOXHLD";
	public static final String T_XPPRDSCRP = "XPPRDSCRP";
	public static final String T_XPBOXCHG = "XPBOXCHG";
	public static final String T_XPBISCUS = "XPBISCUS";
	public static final String T_XPSTARTPROC = "XPSTARTPROC";
	public static final String T_XPCUTOPE = "XPCUTOPE";
	public static final String T_XPQCOPE = "XPQCOPE";
	public static final String T_XPLSTEQP = "XPLSTEQP";
	public static final String T_XPPNLJGE = "XPPNLJGE";
	public static final String T_XPPMCHK = "XPPMCHK";
	public static final String T_XPDEFECT = "XPDEFECT";
	public static final String T_XPWHMTRL = "XPWHMTRL";
	public static final String T_XPSKIPOPE = "XPSKIPOPE";
	public static final String T_XPWIPBANK = "XPWIPBANK";
	public static final String T_XPWIPRETAIN = "XPWIPRETAIN";
	public static final String T_XPINQDEF = "XPINQDEF";
	public static final String T_XPCNPNLOUT = "XPCNPNLOUT";
	public static final String T_XPWOCHG = "XPWOCHG";
	public static final String T_XPRMA = "XPRMA";
	public static final String T_AMSHBT = "AMSHBT";
	public static final String T_AMSMAIN = "AMSMAIN";

	public static final String T_AMSHBTWD = "AMSHBTWD";
	public static final String T_AMSSENDER = "AMSSENDER";
	public static final String T_AMSTHICKNESS = "AMSTHICKNESS";
	public static final String T_AMSDMIC = "AMSDMIC";
	public static final String T_AMSICGOOD = "AMSICGOOD";
	public static final String T_AMSZJ = "AMSZJ";
	public static final String T_AMSLZGRADE = "AMSLZGRADE";
	public static final String T_AMSNGGRADE = "AMSNGGRADE";
	public static final String T_AMSLOTBROKEN = "AMSLOTBROKEN";
	/**
	 * 6.Trx errot def
	 */
	public static final long E_XPCLOGOF = 1000100;
	public static final long E_XPCLOGOF_SHT_CNT_NOT_MATCH = E_XPCLOGOF + 1;
	public static final long E_XPCLOGOF_REWK_PARENT_INVALID = E_XPCLOGOF + 2;

	public static final long E_XPAPLYSO = 1000200;
	public static final long E_XPAPLYSO_SALES_ORDER_ALREADY_EXIST = E_XPAPLYSO + 1;
	public static final long E_XPAPLYSO_MDL_DEF_NOT_FOUND = E_XPAPLYSO + 2;
	public static final long E_XPAPLYSO_BIS_PATH_NOT_FOUND = E_XPAPLYSO + 3;
	public static final long E_XPAPLYSO_RET_WO_NOT_FOUND = E_XPAPLYSO + 4;
	public static final long E_XPAPLYSO_CLOSE_STAT = E_XPAPLYSO + 5;
	public static final long E_XPAPLYSO_PLN_PRD_QTY_ERROR = E_XPAPLYSO + 6;
	public static final long E_XPAPLYSO_OUT_OF_QTY = E_XPAPLYSO + 7;
	public static final long E_XPAPLYSO_WO_ALREADY_RELEASED = E_XPAPLYSO + 8;
	public static final long E_XPAPLYSO_OTHER_ERROR = E_XPAPLYSO + 9;

	public static final long E_XPAPLYWO = 1000300;
	public static final long E_XPAPLYWO_WORDER_ALREADY_EXIST = E_XPAPLYWO + 1;
	public static final long E_XPAPLYWO_MDL_DEF_NOT_FOUND = E_XPAPLYWO + 2;
	public static final long E_XPAPLYWO_BIS_PATH_NOT_FOUND = E_XPAPLYWO + 3;
	public static final long E_XPAPLYWO_OTHER_ERROR = E_XPAPLYWO + 4;
	public static final long E_XPAPLYWO_CLOSE_STAT = E_XPAPLYWO + 5;
	public static final long E_XPAPLYWO_QUERY_CONDITION_NULL = E_XPAPLYWO + 6;
	public static final long E_XPAPLYWO_QTY_CONSTRAINT = E_XPAPLYWO + 76;
	public static final long E_XPAPLYWO_NOT_BIND_SO = E_XPAPLYWO + 77;

	public static final long E_XPLSTDAT = 1000400;
	public static final long E_XPLSTDAT_OTHER_ERROR = E_XPAPLYWO + 20;

	public static final long E_XPANNOUN = 1000500;
	public static final long E_XPTOOLOPE = 1000600;
	public static final long E_XPTOOLOPE_INVALID_INPUT = E_XPTOOLOPE + 1;
	public static final long E_XPTOOLOPE_INVALID_NOTALLOW_SPACE = E_XPTOOLOPE + 2;
	public static final long E_XPTOOLOPE_NEW_TIMESTAMP_INVALIED = E_XPTOOLOPE + 3;

	public static final long E_XPBMDLDF = 1000700;
	public static final long E_XPBMDLDF_NOT_FOUND_MDL = E_XPBMDLDF + 1;
	public static final long E_XPBMDLDF_OTHER_ERR = E_XPBMDLDF + 2;

	public static final long E_XPBISOPE = 1000800;
	public static final long E_XPBISOPE_NOT_FOUND_OPE = E_XPBISOPE + 1;
	public static final long E_XPBISOPE_OPE_ALREADY_EXIST = E_XPBISOPE + 2;
	public static final long E_XPBISOPE_OTHER_ERR = E_XPBISOPE + 3;
	public static final long E_XPBISOPE_BIS_PATH_NOT_FOUND = E_XPBISOPE + 4;

	public static final long E_XPBISQRS = 1000800;
	public static final long E_XPBISQRS_NOT_FOUND_QRS = E_XPBISQRS + 1;
	public static final long E_XPBISQRS_QRS_ALREADY_EXIST = E_XPBISQRS + 2;
	public static final long E_XPBISQRS_MDL_NOT_FOUND = E_XPBISQRS + 3;
	public static final long E_XPBISQRS_OTHER_ERR = E_XPBISQRS + 4;

	public static final long E_XPBISMTR = 1000900;
	public static final long E_XPBISMTR_NOT_FOUND_MTRL = E_XPBISMTR + 1;
	public static final long E_XPBISMTR_ALREADY_EXIST = E_XPBISMTR + 2;
	public static final long E_XPBISMTR_OTHER_ERR = E_XPBISQRS + 3;

	public static final long E_XPBISBOM = 1000900;
	public static final long E_XPBISBOM_NOT_FOUND_RECORDER = E_XPBISBOM + 1;
	public static final long E_XPBISBOM_RECORDER_ALREADY_EXIST = E_XPBISBOM + 2;
	public static final long E_XPBISBOM_OTHER_ERR = E_XPBISBOM + 3;

	public static final long E_XPWOTOOL = 1001100;
	public static final long E_XPWOTOOL_NOT_FOUND_RECORDER = E_XPWOTOOL + 1;
	public static final long E_XPWOTOOL_RECORDER_ALREADY_EXIST = E_XPWOTOOL + 2;
	public static final long E_XPWOTOOL_OTHER_ERR = E_XPWOTOOL + 3;

	public static final long E_XPTOOLCHK = 1001200;
	public static final long E_XPTOOLCHK_SPEC_CHK_TYPE_BOUND_INVALID = 1001200 + 1;

	public static final long E_XPBISTOOL = 1001300;
	public static final long E_XPBISTOOL_NOT_FOUND_RECORDER = E_XPBISTOOL + 1;
	public static final long E_XPBISTOOL_RECORDER_ALREADY_EXIST = E_XPBISTOOL + 2;
	public static final long E_XPBISTOOL_OTHER_ERR = E_XPBISTOOL + 3;

	public static final long E_XPBISPAM = 1001400;
	public static final long E_XPBISPAM_NOT_FOUND_RECORDER = E_XPBISPAM + 1;
	public static final long E_XPBISPAM_RECORDER_ALREADY_EXIST = E_XPBISPAM + 2;
	public static final long E_XPBISPAM_MDL_NOT_FOUNCT = E_XPBISPAM + 3;
	public static final long E_XPBISPAM_OTHER_ERR = E_XPBISPAM + 4;

	public static final long E_XPWHSOPE = 1001500;
	public static final long E_XPWHSOPE_INVALID_INPUT = E_XPWHSOPE + 1;
	public static final long E_XPWHSOPE_MTRL_BOX_ALREADY_EXIST = E_XPWHSOPE + 2;
	public static final long E_XPWHSOPE_QUERY_CONDITION_INCALID = E_XPWHSOPE + 3;
	public static final long E_XPWHSOPE_INVALID_USE_CHANGE_TYPE = E_XPWHSOPE + 4;
	public static final long E_XPWHSOPE_FIND_NO_PANEL_BY_BOX = E_XPWHSOPE + 5;
	public static final long E_XPWHSOPE_ADD_UPDATE_WOINFO_FAILED = E_XPWHSOPE + 6;
	public static final long E_XPWHSOPE_BOX_ALREADY_RELEASED = E_XPWHSOPE + 7;
	public static final long E_XPWHSOPE_BOX_NOT_RELEASED = E_XPWHSOPE + 8;
	public static final long E_XPWHSOPE_INVALID_BOX_STAT = E_XPWHSOPE + 9;
	public static final long E_XPWHSOPE_RELEASED_BOX_BACK_ERROR = E_XPWHSOPE + 10;
	public static final long E_XPWHSOPE_WO_PRD_MISMATCH_ERROR = E_XPWHSOPE + 11;
	public static final long E_XPWHSOPE_MTEL_PROD_ID_MISMATCH_ERROR = E_XPWHSOPE + 12;

	public static final long E_XPBISPTH = 1001600;
	public static final long E_XPBISPTH_NOT_FOUND_RECORDER = E_XPBISPTH + 1;
	public static final long E_XPBISPTH_RECORDER_ALREADY_EXIST = E_XPBISPTH + 2;
	public static final long E_XPBISPTH_OTHER_ERR = E_XPBISPTH + 3;
	public static final long E_XPBISPTH_PATH_INFO_NOT_FOUND = E_XPBISPTH + 5;
	public static final long E_XPBISPTH_PATH_ITEM_ALREADY_EXIST = E_XPBISPTH + 6;
	public static final long E_XPBISPTH_PATH_ITEM_NOT_FOUND = E_XPBISPTH + 7;

	public static final long E_XPINQBOX = 1001600;
	public static final long E_XPINQBOX_INVALID_INPUT = E_XPINQBOX + 1;
	public static final long E_XPINQBOX_INVALID_INPUT_BOX_ID = E_XPINQBOX + 2;
	public static final long E_XPINQBOX_READ_SHT_ERROR = E_XPINQBOX + 3;
	public static final long E_XPINQBOX_INVALID_INPUT_WO_ID = E_XPINQBOX + 4;
	public static final long E_XPINQBOX_INVALID_INPUT_FLG_ID = E_XPINQBOX + 5;

	public static final long E_XPUNPACK = 1001700;
	public static final long E_XPUNPACK_INVALID_INPUT = E_XPUNPACK + 1;
	public static final long E_XPUNPACK_INVALID_WO_STATUS = E_XPUNPACK + 2;
	public static final long E_XPUNPACK_INVALID_WO_COUNT = E_XPUNPACK + 3;
	public static final long E_XPUNPACK_INVALID_BOX_STATUS = E_XPUNPACK + 4;
	public static final long E_XPUNPACK_BOX_NOT_REAL_EMPT = E_XPUNPACK + 5;
	public static final long E_XPUNPACK_BOX_INVALIED = E_XPUNPACK + 6;
	public static final long E_XPUNPACK_BOX_IS_FULL = E_XPUNPACK + 7;
	public static final long E_XPUNPACK_PRD_INFO_EXIST = E_XPUNPACK + 8;
	public static final long E_XPUNPACK_PRD_INDT_EXIST = E_XPUNPACK + 9;
	public static final long E_XPUNPACK_PRD_IN_NOT_ENOUGH = E_XPUNPACK + 10;
	public static final long E_XPUNPACK_MTRL_BOX_INVALIED = E_XPUNPACK + 11;
	public static final long E_XPUNPACK_BOX_CNT_INVALIED = E_XPUNPACK + 12;
	public static final long E_XPUNPACK_REAL_EMPT_FLG_INVALIED = E_XPUNPACK + 13;
	public static final long E_XPUNPACK_CREATE_BOX_FAILED = E_XPUNPACK + 14;
	public static final long E_XPUNPACK_MTRL_BOX_ALREADY_EMPT = E_XPUNPACK + 15;
	public static final long E_XPUNPACK_CANCEL_PRD_INFO_STATUS_INVALIED = E_XPUNPACK + 16;
	public static final long E_XPUNPACK_CANCEL_PRD_INFO_CR_PROC_INVALIED = E_XPUNPACK + 17;
	public static final long E_XPUNPACK_SLOT_NO_IN_MTRL_EXIST = E_XPUNPACK + 18;
	public static final long E_XPUNPACK_INVALID_CUS_ID = E_XPUNPACK + 19;
	public static final long E_XPUNPACK_INVALID_PRD_ID = E_XPUNPACK + 20;
	public static final long E_XPUNPACK_INVALID_BOX_ID = E_XPUNPACK + 21;

	public static final long E_XPMLITEM = 1001800;
	public static final long E_XPMLITEM_M_LABEL_ALREADY_EXIST = E_XPMLITEM + 1;
	public static final long E_XPMLITEM_NOT_FOUND_M_LABEL = E_XPMLITEM + 2;
	public static final long E_XPMLITEM_M_ITEM_NOT_FOUND = E_XPMLITEM + 3;

	public static final long E_XPMOVEIN = 1001900;
	public static final long E_XPMOVEIN_TOOL_ID_EMPTY = E_XPMOVEIN + 1;
	public static final long E_XPMOVEIN_TOOL_UNIT_TYPE_INVALIED = E_XPMOVEIN + 2;
	public static final long E_XPMOVEIN_TOOL_STATUS_INVALIED = E_XPMOVEIN + 3;
	public static final long E_XPMOVEIN_BOX_ID_EMPTY = E_XPMOVEIN + 4;
	public static final long E_XPMOVEIN_BOX_STATUS_INVALIED = E_XPMOVEIN + 5;
	public static final long E_XPMOVEIN_BOX_TOOLG_NOT_MATCH = E_XPMOVEIN + 6;
	public static final long E_XPMOVEIN_BOX_AND_PRD_COUNT_NOT_MATCH = E_XPMOVEIN + 7;
	public static final long E_XPMOVEIN_SHT_STATUS_INVALIED = E_XPMOVEIN + 8;
	public static final long E_XPMOVEIN_SHT_MIX_NX_PATH_ID = E_XPMOVEIN + 9;
	public static final long E_XPMOVEIN_SHT_MIX_NX_PATH_VER = E_XPMOVEIN + 10;
	public static final long E_XPMOVEIN_SHT_MIX_NX_OPE_NO = E_XPMOVEIN + 11;
	public static final long E_XPMOVEIN_SHT_MIX_NX_OPE_ID = E_XPMOVEIN + 12;
	public static final long E_XPMOVEIN_SHT_MIX_NX_OPE_VER = E_XPMOVEIN + 13;
	public static final long E_XPMOVEIN_SHT_MIX_NX_PROC_ID = E_XPMOVEIN + 14;
	public static final long E_XPMOVEIN_SHT_MIX_NX_TOOLG_ID = E_XPMOVEIN + 15;
	public static final long E_XPMOVEIN_SHT_MIX_NX_TOOL_ID = E_XPMOVEIN + 16;
	public static final long E_XPMOVEIN_INVALIED_DATA_SET_PRST = E_XPMOVEIN + 17;
	public static final long E_XPMOVEIN_BOX_OPE_NOT_MATCH = E_XPMOVEIN + 18;
	public static final long E_XPMOVEIN_PRD_OPE_NOT_MATCH = E_XPMOVEIN + 19;
	public static final long E_XPMOVEIN_PRD_IN_WIP_BNK = E_XPMOVEIN + 20;
	public static final long E_XPMOVEIN_PROC_CHANGE_NOT_WIP_IN_OUT = E_XPMOVEIN + 21;

	public static final long E_XPMOVEOUT = 1002000;
	public static final long E_XPMOVEOUT_INPUT_ITEM_EMPT = E_XPMOVEOUT + 1;
	public static final long E_XPMOVEOUT_TOOL_UNIT_TYPE_INVALIED = E_XPMOVEOUT + 2;
	public static final long E_XPMOVEOUT_TOOL_STATUS_INVALIED = E_XPMOVEOUT + 3;
	public static final long E_XPMOVEOUT_BOX_AND_PRD_COUNT_NOT_MATCH = E_XPMOVEOUT + 4;
	public static final long E_XPMOVEOUT_SHT_STATUS_INVALIED = E_XPMOVEOUT + 5;
	public static final long E_XPMOVEOUT_OUT_TOOLG_UNMATCH = E_XPMOVEOUT + 6;
	public static final long E_XPMOVEOUT_REWK_PARENT_INVALID = E_XPMOVEOUT + 7;
	public static final long E_XPMOVEOUT_SHT_STAT_INVALIED = E_XPMOVEOUT + 8;
	public static final long E_XPMOVEOUT_SHT_MDL_CATE_MIX = E_XPMOVEOUT + 9;
	public static final long E_XPMOVEOUT_SHT_MDL_ID_MIX = E_XPMOVEOUT + 10;
	public static final long E_XPMOVEOUT_SHT_MDL_TYPE_MIX = E_XPMOVEOUT + 11;
	public static final long E_XPMOVEOUT_SHT_PATH_ID_MIX = E_XPMOVEOUT + 12;
	public static final long E_XPMOVEOUT_SHT_PATH_VER_MIX = E_XPMOVEOUT + 13;
	public static final long E_XPMOVEOUT_SHT_OPE_ID_MIX = E_XPMOVEOUT + 14;
	public static final long E_XPMOVEOUT_SHT_OPE_NO_MIX = E_XPMOVEOUT + 15;
	public static final long E_XPMOVEOUT_SHT_OPE_VER_MIX = E_XPMOVEOUT + 16;
	public static final long E_XPMOVEOUT_SHT_NX_TOOL_MIX = E_XPMOVEOUT + 17;
	public static final long E_XPMOVEOUT_SHT_NX_TOOLG_MIX = E_XPMOVEOUT + 18;
	public static final long E_XPMOVEOUT_LOT_DUPLICATE = E_XPMOVEOUT + 19;
	public static final long E_XPMOVEOUT_JUMP_TO_OPE_NOT_EXIST = E_XPMOVEOUT + 20;
	public static final long E_XPMOVEOUT_INVALIED_BNK_FLG = E_XPMOVEOUT + 21;
	public static final long E_XPMOVEOUT_WO_UNMATCH = E_XPMOVEOUT + 22;
	public static final long E_XPMOVEOUT_PATH_UNMATCH = E_XPMOVEOUT + 23;
	public static final long E_XPMOVEOUT_IS_JB_WIP_WAIT = E_XPMOVEOUT + 24;
	public static final long E_XPMOVEOUT_IS_DM_WIP_WAIT = E_XPMOVEOUT + 25;
	public static final long E_XPMOVEOUT_DUPLICATE_LOT_ID = E_XPMOVEOUT + 26;
	public static final long E_XPMOVEOUT_INOUT_CNT_UNMATCH = E_XPMOVEOUT + 27;
	public static final long E_XPMOVEOUT_INVALID_PATH_CATE = E_XPMOVEOUT + 28;

	public static final long E_XPLAYOUT = 1002100;
	public static final long E_XPLAYOUT_NO_LAYOT_LC_ITEM = E_XPLAYOUT + 1;
	public static final long E_XPLAYOUT_ADD_LAYOUT_ALREADY_EXIST = E_XPLAYOUT + 2;
	public static final long E_XPLAYOUT_NOT_FOUND_LAYOUT_ = E_XPLAYOUT + 3;
	public static final long E_XPLAYOUT_NOT_FOUND_WO = E_XPLAYOUT + 4;
	public static final long E_XPLAYOUT_NOT_FOUND_MDL_ID = E_XPLAYOUT + 5;
	public static final long E_XPLAYOUT_DQR_MDL_ID = E_XPLAYOUT + 6;
	public static final long E_XPLAYOUT_NOT_BIND_SO = E_XPLAYOUT + 7;

	public static final long E_XPPNLOUT = 1002200;
	public static final long E_XPPNLOUT_INVALID_BOX_STATUS = E_XPPNLOUT + 1;
	public static final long E_XPPNLOUT_BOX_INVALIED = E_XPPNLOUT + 2;
	public static final long E_XPPNLOUT_BOX_IS_FULL = E_XPPNLOUT + 3;
	public static final long E_XPPNLOUT_BOX_WILL_FULL = E_XPPNLOUT + 4;
	public static final long E_XPPNLOUT_INVALIED_PRD_STAT = E_XPPNLOUT + 5;
	public static final long E_XPPNLOUT_PRD_ALREADY_IN_BOX = E_XPPNLOUT + 6;
	public static final long E_XPPNLOUT_PRD_LIST_NULL = E_XPPNLOUT + 7;
	public static final long E_XPPNLOUT_BOX_NOT_REAL_EMPT = E_XPPNLOUT + 8;
	public static final long E_XPPNLOUT_PRD_CNT_INVALIED = E_XPPNLOUT + 9;
	public static final long E_XPPNLOUT_PRD_GRADE_JUDGE_INVALIED = E_XPPNLOUT + 10;
	public static final long E_XPPNLOUT_BOX_SET_CODE_INVALIED = E_XPPNLOUT + 11;
	public static final long E_XPPNLOUT_BOX_SET_CODE_NOT_SET = E_XPPNLOUT + 12;
	public static final long E_XPPNLOUT_INVALID_CNT = E_XPPNLOUT + 13;

	public static final long E_XPIWIPEQ = 1002300;
	public static final long E_XPIWIPEQ_INVALID_INPUT = E_XPIWIPEQ + 1;
	public static final long E_XPIWIPEQ_INVALID_NX_PROCESS = E_XPIWIPEQ + 2;
	public static final long E_XPIWIPEQ_NO_WIP = E_XPIWIPEQ + 3;
	public static final long E_XPIWIPEQ_INVALID_BOX_STAT = E_XPIWIPEQ + 4;

	public static final long E_SPCGRPDT = 1002400;
	public static final long E_SPCGRPDT_ALREDY_EXIST = E_SPCGRPDT + 1;
	public static final long E_SPCGRPDT_NOT_FOUND_DT = E_SPCGRPDT + 2;

	public static final long E_SPCGRPMN = 1002500;
	public static final long E_SPCGRPMN_ALREDY_EXIST = E_SPCGRPMN + 1;
	public static final long E_SPCGRPMN_NOT_FOUND_RECORD = E_SPCGRPMN + 2;

	public static final long E_SPCCHTMN = 1002600;
	public static final long E_SPCCHTMN_ALREDY_EXIST = E_SPCCHTMN + 1;
	public static final long E_SPCCHTMN_NOT_FOUND_RECORD = E_SPCCHTMN + 2;

	public static final long E_SPCCHTIN = 1002600;
	public static final long E_SPCCHTIN_ALREDY_EXIST = E_SPCCHTIN + 1;
	public static final long E_SPCCHTIN_NOT_FOUND_RECORD = E_SPCCHTIN + 2;

	public static final long E_AMSHBT = 1002700;
	public static final long E_AMSHBT_INVALID_INPUT = E_AMSHBT + 1;
	public static final long E_AMSHBT_TOOL_ID_IS_NULL = E_AMSHBT + 2;
	public static final long E_AMSHBT_EVT_USER_IS_NULL = E_AMSHBT + 3;
	public static final long E_AMSHBT_PLN_ALM_CNT_NULL = E_AMSHBT + 4;
	public static final long E_AMSHBT_PLN_ALM_CNT_INVALIED = E_AMSHBT + 5;
	public static final long E_AMSHBT_IARY_CNT_NULL = E_AMSHBT + 6;
	public static final long E_AMSHBT_IARY_CNT_INVALIED = E_AMSHBT + 7;
	public static final long E_AMSHBT_IARY_CNT_UNMATCH = E_AMSHBT + 8;

	public static final long E_AMSSENDER = 1002800;
	public static final long E_AMSSENDER_ALM_MAIL_RECIVER_NULL = E_AMSSENDER+1;
	public static final long E_AMSSENDER_INVALID_INPUT = E_AMSSENDER+2;
	public static final long E_AMSSENDER_ALM_NO_SMS_RECIVER = E_AMSSENDER+3;
	public static final long E_AMSSENDER_ALM_NO_PHONE_RECIVER = E_AMSSENDER+4;
	public static final long E_AMSSENDER_ALM_NO_MAIL_RECIVER = E_AMSSENDER+5;
	public static final long E_AMSSENDER_ALM_GROUP_NOT_ACTIVE = E_AMSSENDER+6;
	public static final long E_AMSSENDER_TOOL_ID_IS_NULL = E_AMSSENDER+7;
	public static final long E_AMSSENDER_ALM_ID_IS_NULL = E_AMSSENDER+8;
	public static final long E_AMSSENDER_ALM_SEND_TYPE_INVALIED = E_AMSSENDER+9;
	
	public static final long E_XPREWORK = 1002900;
	public static final long E_XPREWORK_INVALID_INPUT = E_XPREWORK + 1;
	public static final long E_XPREWORK_BOX_STATUS_INVALIED = E_XPREWORK + 2;

	public static final long E_XPSWITCH = 1002900;
	public static final long E_XPSWITCH_INVALID_INPUT = E_XPSWITCH + 1;

	public static final long E_XPAPLYDN = 1003000;
	public static final long E_XPAPLYDN_WO_ALREADY_BINDING = E_XPAPLYDN + 1;
	public static final long E_XPAPLYDN_DN_NOT_FOUND = E_XPAPLYDN + 2;
	public static final long E_XPAPLYDN_DN_WO_NOT_FOUND = E_XPAPLYDN + 3;
	public static final long E_XPAPLYDN_ERROR_SHIPPING_TIME = E_XPAPLYDN + 4;
	public static final long E_XPAPLYDN_OTHER_ERROR = E_XPAPLYDN + 5;

	public static final long E_XPSWHPTH = 1003100;
	public static final long E_XPSWHPTH_RECORD_ALREADY_EXIST = E_XPSWHPTH + 1;
	public static final long E_XPSWHPTH_NOT_FOUND_RECORD = E_XPSWHPTH + 2;
	public static final long E_XPSWHPTH_SWH_PATH_NOT_EXIST = E_XPSWHPTH + 3;
	public static final long E_XPSWHPTH_OUT_PATH_NOT_EXIST = E_XPSWHPTH + 4;
	public static final long E_XPSWHPTH_OTHER_ERR = E_XPSWHPTH + 99;

	public static final long E_XPBOXHLD = 1003200;
	public static final long E_XPBOXHLD_INVALID_INPUT = E_XPBOXHLD + 1;
	public static final long E_XPBOXHLD_INVALID_BOX_STATUS = E_XPBOXHLD + 2;
	public static final long E_XPBOXHLD_BOX_IS_EMPT = E_XPBOXHLD + 3;
	public static final long E_XPBOXHLD_INVALID_PRD_STATUS = E_XPBOXHLD + 4;

	public static final long E_XPPRDSCRP = 1003300;
	public static final long E_XPPRDSCRP_INVALID_INPUT = E_XPPRDSCRP + 1;
	public static final long E_XPPRDSCRP_INPUT_PRD_CNT_UNMATCH = E_XPPRDSCRP + 2;
	public static final long E_XPPRDSCRP_INVALID_BOX_STATUS = E_XPPRDSCRP + 3;
	public static final long E_XPPRDSCRP_BOX_IS_EMPT = E_XPPRDSCRP + 4;
	public static final long E_XPPRDSCRP_INVALID_PRD_STATUS = E_XPPRDSCRP + 5;
	public static final long E_XPPRDSCRP_INVALID_BOX_PRD_CNT = E_XPPRDSCRP + 6;
	public static final long E_XPPRDSCRP_BOX_NOT_EMPT = E_XPPRDSCRP + 7;
	public static final long E_XPPRDSCRP_WO_CNT_NOT_ENOUGH = E_XPPRDSCRP + 8;
	public static final long E_XPPRDSCRP_INVALIED_UNSCRP_CNT = E_XPPRDSCRP + 9;

	public static final long E_XPBOXCHG = 1003400;
	public static final long E_XPBOXCHG_INVALID_INPUT = E_XPBOXCHG + 1;
	public static final long E_XPBOXCHG_INVALID_OLD_BOX_STAT = E_XPBOXCHG + 2;
	public static final long E_XPBOXCHG_INVALID_NEW_BOX_STAT = E_XPBOXCHG + 3;
	public static final long E_XPBOXCHG_OLD_BOX_REAL_EMPT_CHK_NG = E_XPBOXCHG + 4;
	public static final long E_XPBOXCHG_NEW_BOX_REAL_EMPT_CHK_NG = E_XPBOXCHG + 5;
	public static final long E_XPBOXCHG_NO_PRD_IN_OLD_BOXG = E_XPBOXCHG + 6;
	public static final long E_XPBOXCHG_NO_PRD_IN_NEW_BOXG = E_XPBOXCHG + 7;
	public static final long E_XPBOXCHG_BOX_SLOT_CHK_FAILED = E_XPBOXCHG + 8;
	public static final long E_XPBOXCHG_NEW_BOX_ID_NULL = E_XPBOXCHG + 9;
	public static final long E_XPBOXCHG_OLD_BOX_ID_NULL = E_XPBOXCHG + 10;
	public static final long E_XPBOXCHG_INVALIED_BOX_STAT_WHEN_CHANGE_WO = E_XPBOXCHG + 11;
	public static final long E_XPBOXCHG_DIFF_BOX_ADMIN_FLG_WHEN_CHANGE_WO = E_XPBOXCHG + 12;

	public static final long E_XPUASGRP = 1003500;
	public static final long E_XPUASGRP_OTHER_ERROR = E_XPUASGRP + 1;
	public static final long E_XPUASGRP_ALREADY_EXIST = E_XPUASGRP + 2;
	public static final long E_XPUASGRP_NOT_FOUND_USER = E_XPUASGRP + 3;
	public static final long E_HPSHTHIS = 1003500;
	public static final long E_HPSHTHIS_INVALID_INPUT = E_HPSHTHIS + 1;

	public static final long E_XPCRTBOX = 1003600;
	public static final long E_XPCRTBOX_BOX_ALREADY_EXIST = E_XPCRTBOX + 1;
	public static final long E_XPCRTBOX_NOT_FOUND = E_XPCRTBOX + 2;

	public static final long E_XPBISDEPT = 1003700;
	public static final long E_XPBISDEPT_ALREADY_EXIST = E_XPBISDEPT + 1;
	public static final long E_XPBISDEPT_NOT_FOUND_DEPT = E_XPBISDEPT + 2;

	public static final long E_XPRWODPS = 1003800;
	public static final long E_XPRWODPS_ALREADY_EXIST = E_XPRWODPS + 1;
	public static final long E_XPRWODPS_NO_RECODER = E_XPRWODPS + 2;
	public static final long E_XPRWODPS_NOT_FOUND_WO = E_XPRWODPS + 3;
	public static final long E_XPRWODPS_CATE_ERROR = E_XPRWODPS + 4;
	public static final long E_XPRWODPS_INVALID_SUB_DPS = E_XPRWODPS + 5;
	public static final long E_XPRWODPS_INVALID_DPS_STAT = E_XPRWODPS + 6;
	public static final long E_XPRWODPS_INVALID_QTY = E_XPRWODPS + 7;
	public static final long E_XPRWODPS_INVALID_TIME = E_XPRWODPS + 8;
	public static final long E_XPRWODPS_OTHER_ERROR = E_XPRWODPS + 9;

	public static final long E_XPBISCUS = 1003900;
	public static final long E_XPBISCUS_INVALID_INPUT = E_XPBISCUS + 1;
	public static final long E_XPBISCUS_ALREADY_EXIST = E_XPBISCUS + 2;
	public static final long E_XPBISCUS_IS_NOT_FOUND = E_XPBISCUS + 3;

	public static final long E_XPSTARTPROC = 1004000;
	public static final long E_XPSTARTPROC_INVALID_INPUT = E_XPSTARTPROC + 1;
	public static final long E_XPSTARTPROC_INVALID_INPUT_NO_SHT = E_XPSTARTPROC + 2;
	public static final long E_XPSTARTPROC_ALREAD_START = E_XPSTARTPROC + 3;
	public static final long E_XPSTARTPROC_INVALID_STATUS = E_XPSTARTPROC + 4;
	public static final long E_XPSTARTPROC_ALREAD_IN_BOX = E_XPSTARTPROC + 5;
	public static final long E_XPSTARTPROC_INVALID_CNT = E_XPSTARTPROC + 6;

	public static final long E_XPCUTOPE = 1004100;
	public static final long E_XPCUTOPE_INVALID_INPUT = E_XPCUTOPE + 1;
	public static final long E_XPCUTOPE_CREATE_BOX_FAILED = E_XPCUTOPE + 2;
	public static final long E_XPCUTOPE_PANEL_MOVE_TO_BOX_FAILED = E_XPCUTOPE + 3;
	public static final long E_XPCUTOPE_BOX_MOVE_OUT_FAILED = E_XPCUTOPE + 4;
	public static final long E_XPCUTOPE_NEW_LOT_ID_INVALIED_B = E_XPCUTOPE + 5;
	public static final long E_XPCUTOPE_NEW_LOT_ID_INVALIED_P = E_XPCUTOPE + 6;
	public static final long E_XPCUTOPE_NEW_LOT_ID_INVALIED_L = E_XPCUTOPE + 7;
	public static final long E_XPCUTOPE_SAVE_DEFECT_FAILED = E_XPCUTOPE + 8;
	public static final long E_XPCUTOPE_BOX_NOT_REAL_EMPT = E_XPCUTOPE + 9;
	public static final long E_XPCUTOPE_PRD_QTY_SUM_UNMATCH = E_XPCUTOPE + 10;
	public static final long E_XPCUTOPE_PRD_STD_QTY_SUM_UNMATCH = E_XPCUTOPE + 11;
	public static final long E_XPCUTOPE_INPUT_PRD_CNT_INVALIED = E_XPCUTOPE + 12;
	public static final long E_XPCUTOPE_INPUT_PRD_LIST_INVALIED = E_XPCUTOPE + 13;

	public static final long E_XPQCOPE = 1004200;
	public static final long E_XPQCOPE_INVALID_INPUT = E_XPQCOPE + 1;
	public static final long E_XPQCOPE_INVALID_PRD_STATUS = E_XPQCOPE + 2;
	public static final long E_XPQCOPE_INVALID_LOT_WO_ID = E_XPQCOPE + 3;
	public static final long E_XPQCOPE_INVALID_LOT_ID = E_XPQCOPE + 4;

	public static final long E_XPLSTEQP = 1004300;
	public static final long E_XPLSTEQP_INVALID_INPUT = E_XPLSTEQP + 1;
	public static final long E_XPLSTEQP_READ_BIS_OPE_ERROR = E_XPLSTEQP + 2;

	public static final long E_XPPNLJGE = 1004400;
	public static final long E_XPPNLJDG_INVALID_INPUT = E_XPPNLJGE + 1;
	public static final long E_XPPNLJDG_ALREADY_EXIST = E_XPPNLJGE + 2;
	public static final long E_XPPNLJDG_PRD_SEQ_NOT_FOUND = E_XPPNLJGE + 3;

	public static final long E_XPWMSOPE = 1004500;
	public static final long E_XPWMSOPE_INVALID_INPUT = E_XPWMSOPE + 1;
	public static final long E_XPWMSOPE_FIND_NO_PANEL_BY_BOX = E_XPWMSOPE + 2;
	public static final long E_XPWMSOPE_DEST_SHOP_UNMATCH = E_XPWMSOPE + 3;
	public static final long E_XPWMSOPE_MTRL_PRD_ID_CHK_FAILED = E_XPWMSOPE + 4;
	public static final long E_XPWMSOPE_MTRL_PRD_SLOT_CHK_FAILED = E_XPWMSOPE + 5;
	public static final long E_XPWMSOPE_IN_WIP_BANK_SHIPPING_FLG_INVALIED = E_XPWMSOPE + 6;
	public static final long E_XPWMSOPE_PATH_WIP_BANK_FLG_IS_N = E_XPWMSOPE + 7;
	public static final long E_XPWMSOPE_WO_CNT_NOT_ENOUGH = E_XPWMSOPE + 8;
	public static final long E_XPWMSOPE_SHIP_NOTICE_HOLD = E_XPWMSOPE + 9;
	public static final long E_XPWMSOPE_SHIP_NOTICE_COMP = E_XPWMSOPE + 10;
	public static final long E_XPWMSOPE_SHIP_NOTICE_NOT_WAIT = E_XPWMSOPE + 11;
	public static final long E_XPWMSOPE_WIP_SEST_SHOP_ERROR = E_XPWMSOPE + 12;
	public static final long E_XPWMSOPE_WO_UNMATCH = E_XPWMSOPE + 13;
	public static final long E_XPWMSOPE_DN_NOT_ENOUGH = E_XPWMSOPE + 14;
	public static final long E_XPWMSOPE_INVALID_WO_MDL_CATE = E_XPWMSOPE + 15;
	public static final long E_XPWMSOPE_ADMIN_FLG = E_XPWMSOPE + 16;
	public static final long E_XPWMSOPE_SAME_DEST_SHOP = E_XPWMSOPE + 17;
	public static final long E_XPWMSOPE_SAME_WO = E_XPWMSOPE + 18;

	public static final long E_XPPMCHK = 1004600;
	public static final long E_XPPMCHK_INVALID_INPUT = E_XPPMCHK + 1;

	public static final long E_XPDEFECT = 1004700;
	public static final long E_XPDEFECT_INVALID_INPUT = E_XPDEFECT + 1;
	public static final long E_XPDEFECT_INVALID_PRD_STAT = E_XPDEFECT + 2;
	public static final long E_XPDEFECT_INVALID_PRD_ITEM = E_XPDEFECT + 3;
	public static final long E_XPDEFECT_INVALID_JUDGE_CNT = E_XPDEFECT + 4;
	public static final long E_XPDEFECT_PRD_HAS_BEEN_START_JUDGED = E_XPDEFECT + 5;

	public static final long E_XPINQLOT = 1004800;
	public static final long E_XPINQLOT_INVALID_INPUT = E_XPINQLOT + 1;
	public static final long E_XPINQLOT_NOT_FOUND_RECORDER = E_XPINQLOT + 2;
	public static final long E_XPINQLOT_OTHER_ERROR = E_XPINQLOT + 3;
	public static final long E_XPINQLOT_ERROR_TOOL_ID_OR_BAY_ID = E_XPINQLOT + 4;
	public static final long E_XPINQLOT_ERROR_LAYOT_CATE = E_XPINQLOT + 5;

	public static final long E_XPCRTNO = 1004900;
	public static final long E_XPCRTNO_INVALID_INPUT = E_XPCRTNO + 1;
	public static final long E_XPCRTNO_NOT_FOUND_RECORDER = E_XPCRTNO + 2;
	public static final long E_XPCRTNO_OTHER_ERROR = E_XPCRTNO + 3;
	public static final long E_XPCRTNO_MAX_SERIAL_NO = E_XPCRTNO + 4;

	public static final long E_XPINQWOR = 1005000;
	public static final long E_XPINQWOR_WO_NOT_BIND_SO = E_XPINQWOR + 1;

	public static final long E_MPWMSOPE = 1005100;
	public static final long E_MPWMSOPE_INVALID_STAT = E_MPWMSOPE + 1;
	public static final long E_MPWMSOPE_NOT_FOUND_PATH = E_MPWMSOPE + 2;
	public static final long E_MPWMSOPE_NOT_FOUND_START_OPE = E_MPWMSOPE + 3;
	public static final long E_MPWMSOPE_INVALID_QTY = E_MPWMSOPE + 4;

	public static final long E_XPSKIPOPE = 1005200;
	public static final long E_XPSKIPOPE_INPUT_ITEM_EMPT = E_XPSKIPOPE + 1;
	public static final long E_XPSKIPOPE_SKIP_TO_OPE_NOT_EXIST = E_XPSKIPOPE + 2;
	public static final long E_XPSKIPOPE_INVALIED_BNK_FLG = E_XPSKIPOPE + 3;
	public static final long E_XPSKIPOPE_INVALIED_LOT_ID = E_XPSKIPOPE + 4;
	public static final long E_XPSKIPOPE_INVALIED_ONE = E_XPSKIPOPE + 5;
	public static final long E_XPSKIPOPE_INVALIED_TWO = E_XPSKIPOPE + 6;
	public static final long E_XPSKIPOPE_INVALIED_NOT_EQUAL = E_XPSKIPOPE + 7;

	public static final long E_XPCNPNLOUT = 1005300;
	public static final long E_XPCNPNLOUT_INPUT_ITEM_EMPT = E_XPCNPNLOUT + 1;
	public static final long E_XPCNPNLOUT_INVALIED_PRD_STAT = E_XPCNPNLOUT + 2;
	public static final long E_XPCNPNLOUT_PRD_NOT_IN_BOX = E_XPCNPNLOUT + 3;
	public static final long E_XPCNPNLOUT_INVALID_BOX_STATUS = E_XPCNPNLOUT + 4;
	public static final long E_XPCNPNLOUT_BOX_INVALIED = E_XPCNPNLOUT + 5;
	public static final long E_XPCNPNLOUT_INVALIED_PRD_CNT = E_XPCNPNLOUT + 6;
	public static final long E_XPCNPNLOUT_INVALIED_BNK_FLG = E_XPCNPNLOUT + 7;
	public static final long E_XPCNPNLOUT_NOT_SAME_BOX = E_XPCNPNLOUT + 8;

	public static final long E_XPWIPBANKT = 1005400;
	public static final long E_XPWIPBANKT_INVALID_INPUT = E_XPWIPBANKT + 1;
	public static final long E_XPWIPBANKT_INVALIED_BOX = E_XPWIPBANKT + 2;
	public static final long E_XPWIPBANKT_INVALIED_BOX_STAT = E_XPWIPBANKT + 3;
	public static final long E_XPWIPBANKT_INVALIED_BOX_BNK_FLG = E_XPWIPBANKT + 4;

	public static final long E_XPWIPRETAIN = 1005500;
	public static final long E_XPWIPRETAIN_INVALID_INPUT = E_XPWIPRETAIN + 1;
	public static final long E_XPWIPRETAIN_INVALID_BOX_STATUS = E_XPWIPRETAIN + 2;
	public static final long E_XPWIPRETAIN_INVALID_REAL_EMP = E_XPWIPRETAIN + 3;
	public static final long E_XPWIPRETAIN_INVALID_VALID_FLG = E_XPWIPRETAIN + 4;
	public static final long E_XPWIPRETAIN_NO_PRD_IN_BOX = E_XPWIPRETAIN + 5;
	public static final long E_XPWIPRETAIN_INVALID_PRD_STATUS = E_XPWIPRETAIN + 6;
	public static final long E_XPWIPRETAIN_INVALID_BNK_FLG = E_XPWIPRETAIN + 7;
	public static final long E_XPWIPRETAIN_ALREADY_LOT = E_XPWIPRETAIN + 8;
	public static final long E_XPWIPRETAIN_NO_LOT = E_XPWIPRETAIN + 9;
	public static final long E_XPWIPRETAIN_WO_UNMATCH = E_XPWIPRETAIN + 10;

	public static final long E_XPINQDEF = 1005600;
	public static final long E_XPINQDEF_INVALID_INPUT = E_XPINQDEF + 1;
	public static final long E_XPINQDEF_INVALID_PROC_ID = E_XPINQDEF + 2;

	public static final long E_XPWOCHG = 1005700;
	public static final long E_XPWOCHG_INVALID_INPUT = E_XPWOCHG + 1;
	public static final long E_XPWOCHG_DIFF_BOX_ADMIN_FLG_WHEN_CHANGE_WO = E_XPWOCHG + 12;

	public static final long E_WO_DPS_DAO = 1005800;
	public static final long E_WO_DPS_DAO_P3_IS_NULL = E_WO_DPS_DAO + 1;
	public static final long E_WO_DPS_DAO_P2_IS_NULL = E_WO_DPS_DAO + 2;

	public static final long E_XPRMA = 1005900;
	public static final long E_XPRMA_INVALID_STATUS = E_XPRMA + 1;
	public static final long E_XPRMA_INVALID_WO_STATUS = E_XPRMA + 2;
	public static final long E_XPRMA_OVER_STD_CNT = E_XPRMA + 3;
	public static final long E_XPRMA_MDL_ID_NULL = E_XPRMA + 4;
	public static final long E_XPRMA_INVALID_WO = E_XPRMA + 5;
	public static final long E_XPRMA_SLOT_NO_EXIST = E_XPRMA + 6;
	public static final long E_XPRMA_PRD_SHTC_CUS_ID_NULL = E_XPRMA + 7;
	public static final long E_XPRMA_NVALID_CUS_ID = E_XPRMA + 8;
	public static final long E_XPRMA_NO_SO = E_XPRMA + 9;
	public static final long E_XPRMA_NVALID_MDL_ID = E_XPRMA + 10;
	public static final long E_XPRMA_MTRL_BOX_INVALIED = E_XPRMA + 11;
	public static final long E_XPRMA_MTRL_BOX_ALREADY_EMPT = E_XPRMA + 12;
	public static final long E_XPRMA_PRD_IN_NOT_ENOUGH = E_XPRMA + 13;
	/**
	 * rwkpath(2500)
	 */
	public static final long E_XPRWKPATH = 1006000;
	public static final long E_XPRWKPATH_INVALID_BOX_STATUS = E_XPRWKPATH + 1;
	public static final long E_XPRWKPATH_INVALID_BOX_ID = E_XPRWKPATH + 2;
	public static final long E_XPRWKPATH_INVALID_PATH_ID = E_XPRWKPATH + 3;
	public static final long E_XPRWKPATH_RTN_OPE_ID = E_XPRWKPATH + 4;
	public static final long E_XPRWKPATH_PRD_EXIST = E_XPRWKPATH + 5;
	public static final long E_XPRWKPATH_NULL_PATH = E_XPRWKPATH + 6;
	public static final long E_XPRWKPATH_NULL_OPE = E_XPRWKPATH + 7;

	public static final long E_XPFBLNMX  = 1006100;
	public static final long E_XPFBLNMX_ALREADY_EXIST  = E_XPFBLNMX+1;
	public static final long E_XPFBLNMX_HAVE_STAND_FAB  = E_XPFBLNMX+2;
	public static final long E_XPFBLNMX_NO_SETTING_RULE  = E_XPFBLNMX+3;
	public static final long E_XPFBLNMX_HAVE_STAND_LINE  = E_XPFBLNMX+4;

	
	/**
	 * 7. Event cate
	 */
	public static final String EVT_LGOF = "LGOF"; // 出账 Box Log off
	public static final String EVT_LGON = "LGON"; // 入账 Box Log on
	public static final String EVT_REWK_IN = "RWKI"; // 返工 Rework in
	public static final String EVT_WHIN = "WHIN"; // 入库 Whouse in
	public static final String EVT_WIP_WHIN = "WIPI"; // 半成品入库 Whouse in(wip)
	public static final String EVT_WIP_WHIO = "WIPO"; // 半成品出库 Whouse out(wip)
	public static final String EVT_WIP_BANK_IN = "WBKI"; // 进入WIP BANK
	public static final String EVT_WIP_BANK_OUT = "WBKO"; // 从WIP BANK转出
	public static final String EVT_WHCG = "WHCG"; // 转仓 Whouse change
	public static final String EVT_WHOUT = "WHOT"; // 出货 Whouse out
	public static final String EVT_STB_INPR = "STBI"; // 提配 Panel unpack
	public static final String EVT_WH_RETURN = "WHRT"; // WH Return to line
	// public static final String EVT_STB_OUT = "STBO";
	public static final String EVT_PNL_START_PROCESS = "PSTR"; // 开始制程 Panel
																// start process
	public static final String EVT_PNL_MOVE_OUT = "PMVT"; // 转入（面板转入箱子） Panel
															// move to box
	public static final String EVT_PNL_CANCEL_MOVE = "PCMT"; // 取消转入 Panel
																// cancel move
																// to box
	public static final String EVT_CUT_ADD_PANEL = "CAPN"; // 切割新批次（切割首站生成新批次）
															// Add new panel in
															// cut
	public static final String EVT_CUT_Delete_PANEL = "CDPN"; // 切割原玻璃删除 Delete
																// old panel in
																// cut
	public static final String EVT_BOX_HOLD = "HLDC"; // 保留 Box HOLD
	public static final String EVT_BOX_HOLD_RELS = "HLDR"; // 释放 Box HOLD
															// release
	public static final String EVT_SCRP = "SCRP"; // 滞留（目前暂时取消） Scrp
	public static final String EVT_SCRP_CALCEL = "SCRL"; // 取消滞留（目前暂时取消） Scrp
															// cancel
	// public static final String EVT_ADD_USER = "EVCT"; // ADD USER
	public static final String EVT_BOX_CHANGE = "BXCG"; // 交换箱 Box change
	public static final String EVT_WO_CHANGE = "WOCG"; // 转WO
	public static final String EVT_JUMP_OPE = "JMPO"; // 异常转出 Jump ope
	public static final String EVT_IPQC_OPE = "IPQC"; // IPQC IPQC
	// public static final String EVT_SALE_PANEL_JUDGE ="JUDG"; // 不良判定
	public static final String EVT_CHNAGE_LOT = "CHLT"; // 变更批次 Change lot id
	public static final String EVT_DEFECT_JUDGE = "DFJG"; // 不良判定 Defect
															// judge(use in
															// src/com/dao/impl/RetPrdJgeHibernateDao.java)
	public static final String EVT_CANCEL_UNPACK = "UUPN"; // 取消释放
	public static final String EVT_DEFECT_ADD = "ADEF"; // 不良新增
	public static final String EVT_DEFECT_APPEND = "PDEF"; // 不良追加
	public static final String EVT_DEFECT_DELETE = "DDEF"; // 不良删除
	public static final String EVT_DEFECT_RE_JUDGE = "UDEF"; // 不良重判
	public static final String EVT_QA_INSPECTION = "QAIS"; // QA抽检
	public static final String EVT_OUT_RETURN = "OTRT"; // Out Return to line
	public static final String EVT_SKIP_OPE = "SKIP"; // 跳站
	public static final String EVT_WIP_RETAIN = "WIPR"; // 在制保留
	public static final String EVT_WIP_RETAIN_CANCEL = "WIPC"; // 取消在制保留
	public static final String EVT_REGIST_LOT = "RELT"; // 登记产品的lot_id
	public static final String EVT_RMA_RELEASE = "RMRL"; // 出货返工品release
	public static final String EVT_RMA_CANCEL_RELEASE = "RMCR"; // 出货返工品release
	public static final String EVT_RMA_PRD_IN = "RMPI"; // 出货返工品产品转入
	public static final String EVT_RMA_CANCEL_PRD_IN = "RMCI"; // 出货返工品取消产品转入
	public static final String EVT_RMA_STB_INPR = "RMSI"; // 出货返工品提配Panel unpack
	public static final String EVT_MTRL_RELEASE_TO_PROD = "MTRP";// 发料
	public static final String EVT_MTRL_RELEASE_CANCEL = "MTRC";// 取消发料
	public static final String EVT_MTRL_IN_CANCEL = "MTIC";// 取消收料
	public static final String EVT_MTRL_UPDATE = "MTUP";// 来料料号变更
	public static final String EVT_PRD_GRADE_JUDGE = "PGJD"; // 等级判定
	public static final String EVT_EMPTY_BOX = "EMPB"; // 等级判定
	public static final String EVT_ACMP_REDUCE = "ACRD"; // 计划实际完成数量减少
	public static final String EVT_ACMP_ADD = "ACAD"; // 计划实际完成数量减少
	public static final String EVT_ACIN_UPDATE = "AIUD"; // 计划实际完成数量减少
	public static final String EVT_MOVE_OUT_UPDATE = "LFUD"; // 计划实际完成数量减少
	public static final String EVT_GROUP_ID_CHANGE = "GPCG"; // 转WO
	
	/**
	 * 8. Basic check error
	 */
	public static final long PATH_TYPE_INVALID = 0000100;
	public static final long INVALIED_BOX_STAT = 0000200;
	public static final long INVALIED_SHT_STAT = 0000300;
	public static final long INVALIED_SHT_CNT = 0000400;
	public static final long PATH_IS_FINISH = 0000500;
	public static final long SLOT_NO_DUPLICATE = 0000600;
	public static final long SLOT_NO_INVALIED = 0000700;
	public static final long SHT_MDL_CATE_MIX = 800;
	public static final long SHT_MDL_ID_MIX = 900;
	public static final long SHT_MDL_TYPE_MIX = 1000;
	public static final long SHT_PATH_ID_MIX = 1100;
	public static final long SHT_PATH_VER_MIX = 1200;
	public static final long SHT_OPE_ID_MIX = 1300;
	public static final long SHT_OPE_NO_MIX = 1400;
	public static final long SHT_OPE_VER_MIX = 1500;
	public static final long SHT_NX_TOOLG_MIX = 1600;
	public static final long SHT_WO_ID_MIX = 1700;
	public static final long SHT_STAT_MIX = 1800;
	public static final long SHT_NX_PROC_ID_MIX = 1900;
	public static final long SHT_LOT_ID_MIX = 2000;
	public static final long SHT_BNK_FLG_MIX = 2100;
	public static final long SHT_CR_PROC_ID_MIX = 2200;
	public static final long MTRL_PRD_SLOT_CHK_FAILED = 2300;
	public static final long MTRL_PRD_ID_CHK_FAILED = 2400;
	public static final long BOX_INVALIED = 2500;
	public static final long PRD_QTY_NOT_ENOUGH = 2600;
	public static final long INVALIED_SPACE_INPUT = 2700;
	public static final long SHT_LOT_NULL = 2800;
	public static final long BOX_CNT_NOT_ENOUGT = 2900;
	public static final long GROUP_ID_MIX = 3000;
	public static final long PRD_GRADE_MIX = 3100;
	public static final long SHT_MTRL_SLOT_NO_FK_SAME = 3200;
	/**
	 * 9. SPC COM DEFINE
	 */
	public static final String SPC_CHART_TYPE_SINGLE = "10";
	public static final String SPC_CHART_TYPE_MOVING_RANGE = "11";
	public static final String SPC_CHART_TYPE_MEAN = "01";
	public static final String SPC_CHART_TYPE_RANGE = "02";
	public static final String SPC_CHART_TYPE_SIGMA = "03";
	public static final String SPC_CHART_TYPE_UNIFM = "04";
	public static final String SPC_CHART_TYPE_COUNT = "20"; // liufang
	public static final String SPC_CHART_TYPE_MEDIAN = "30"; // liufang add median chart
	public static final String SPC_CHART_TYPE_MRANGE = "31"; // liufang add median chart
	public static final String SPC_CHART_TYPE_P = "40"; // liufang add P chart
	public static final String SPC_CHART_TYPE_NP = "50"; // liufang add NP chart
	public static final String SPC_CHART_TYPE_C = "60"; // liufang add C chart

	public static final String STRING_SERIAL_TYPE_SO = "S";
	public static final String STRING_SERIAL_TYPE_WO = "W";
	public static final String STRING_SERIAL_TYPE_BOX = "B";
	public static final String STRING_SERIAL_TYPE_LOT = "L";
	public static final char CHAR_SERIAL_TYPE_SO = 'S';
	public static final char CHAR_SERIAL_TYPE_WO = 'W';
}
